//
//  HttpRequestClient.m
//  dingdang_v2
//
//  Created by lin on 16/1/13.
//  Copyright © 2016年 mac mini. All rights reserved.
//

#import "HttpRequestClient.h"


@implementation HttpRequestClient

+ (AFHTTPRequestOperation*)sendWXViewTopicListRequestWithParams:(id)params
                                                   SuccessBlock:(MDAFNetWorkRequestSuccessBlock)successBlock
                                                      FailBlock:(MDAFNetWorkRequestFailBlock)failBlock
                                                     ErrorBlock:(MDAFNetWorkRequestErrorBlock)errorBlock
{
    NSString *addUrl = [[UFAPI shared] urlStringWithModuleMainTag:kDDTopicList];
    return [MDAFNetworkRequestmanager sendPostRequestWithAddURL:addUrl Params:params SuccessBlock:successBlock FailBlock:failBlock ErrorBlock:errorBlock];
}

+ (AFHTTPRequestOperation*)sendWXViewAnswerListRequestWithParams:(id)params
                                                    SuccessBlock:(MDAFNetWorkRequestSuccessBlock)successBlock
                                                       FailBlock:(MDAFNetWorkRequestFailBlock)failBlock
                                                      ErrorBlock:(MDAFNetWorkRequestErrorBlock)errorBlock
{
    NSString *addUrl = [[UFAPI shared] urlStringWithModuleMainTag:kDDQuestionAnswerList];
    return [MDAFNetworkRequestmanager sendPostRequestWithAddURL:addUrl Params:params SuccessBlock:successBlock FailBlock:failBlock ErrorBlock:errorBlock];
}

+ (AFHTTPRequestOperation*)sendWXViewReplyListRequestWithParams:(id)params
                                                   SuccessBlock:(MDAFNetWorkRequestSuccessBlock)successBlock
                                                      FailBlock:(MDAFNetWorkRequestFailBlock)failBlock
                                                     ErrorBlock:(MDAFNetWorkRequestErrorBlock)errorBlock
{
    NSString *addUrl = [[UFAPI shared] urlStringWithModuleMainTag:kDDQuestionAnswerReplyList];
    return [MDAFNetworkRequestmanager sendPostRequestWithAddURL:addUrl Params:params SuccessBlock:successBlock FailBlock:failBlock ErrorBlock:errorBlock];
}

@end
